package control.render;


public class BucketCompletedAlert implements Runnable{
  private RenderController renderController;
  private int x;
  private int y;
  private int bucketSize;
  
  public BucketCompletedAlert(RenderController renderController, int x, int y, int bucketSize){
    this.renderController = renderController;
    this.x = x;
    this.y = y;
    this.bucketSize = bucketSize;
  }
  @Override
  public void run() {
    renderController.getRenderPanel().repaint(x, y, bucketSize, bucketSize);
    renderController.bucketCompleted();
  }
}
